﻿@using Abp.Authorization.Users
@using Abp.Extensions
@using Abp.MultiTenancy
@model DualControl.Web.Models.Account.LoginFormViewModel
@section Styles
    {
    <environment names="Development">
        <link rel="stylesheet" href="~/view-resources/Views/Account/Login.css" asp-append-version="true" />
    </environment>
    <environment names="Staging,Production">
        <link rel="stylesheet" href="~/view-resources/Views/Account/Login.min.css" asp-append-version="true" />
    </environment>
}
@section Scripts
    {
    <environment names="Development">
        <script src="~/view-resources/Views/Account/ChangePassword.js" asp-append-version="true"></script>
    </environment>
    <environment names="Staging,Production">
        <script src="~/view-resources/Views/Account/ChangePassword.js" asp-append-version="true"></script>
    </environment>
}
    <div class="card" id="﻿LoginArea">
        <div class="body">
            <form id="ChangePasswordModalForm" asp-action="ChangePassword" method="post">

                <h4 class="text-center">修改密码</h4>
                <div class="input-group">
                    <label>现密码</label>
                   
                    <div class="form-line">
                        <input type="password" class="form-control" name="CurrentPassword" placeholder="现密码" required autofocus @*maxlength="@AbpUserBase.MaxEmailAddressLength"*@>
                    </div>
                </div>
                <div class="input-group">
                    <label>新密码</label>
                    <div class="form-line">
                        <input type="password" class="form-control" name="NewPassword" placeholder="输入新密码" required autofocus maxlength="@AbpUserBase.MaxEmailAddressLength">
                    </div>
                </div>
                <div class="input-group">
                    <label>重复密码</label>
                    <div class="form-line">
                        <input type="password" class="form-control" name="NewPasswordRepeat" placeholder="输入重复密码" required maxlength="@AbpUserBase.MaxPlainPasswordLength">
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-4">
                        <button id="LoginButton" class="btn btn-block bg-pink waves-effect" type="submit">确定</button>
                    </div>
                </div>
            </form>
        </div>
      

    </div>





@*@using DualControl.Web.Models.Common.Modals

    @Html.Partial("~/Views/Shared/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel("修改密码"))

    @{
        Layout = "~/Views/Account/_Layout.cshtml";
    }
    <script src="~/view-resources/Views/Account/ChangePassword.js" asp-append-version="true"></script>

    <div class="modal-body">
        <form name="ChangePasswordModalForm" class="m-form">
            <div class="form-group">
                <label>@L("CurrentPassword")</label>
                <input type="password" autocomplete="off" name="CurrentPassword" class="form-control" required>

            </div>
            <div class="form-group">
                <label>@L("NewPassword")</label>
                <input id="ChangePasswordModal_Password" type="password" autocomplete="off" name="NewPassword" class="form-control" required>
            </div>
            <div class="form-group">
                <label>@L("NewPasswordRepeat")</label>
                <input type="password" autocomplete="off" name="NewPasswordRepeat" class="form-control" required equalto="#ChangePasswordModal_Password">
            </div>
        </form>
    </div>
    @Html.Partial("~/Views/Shared/Modals/_ModalFooterWithSaveAndCancel.cshtml")*@

